﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SingletonPattern.Model;
using SingletonPattern.View;

namespace SingletonPattern.Presenter
{
    class UserPresenter
    {
        private IUserModel m_userModel;
        private IUserView m_userView;

        public UserPresenter(IUserModel userModel, IUserView userView)
        {
            m_userModel = userModel;
            m_userView = userView;

            this.getUser();
            this.m_userView.loadUser();
        }

        public void getUser()
        {
            m_userModel.getUser();
        }

        public void setUser()
        {
            m_userModel.updateUser();
        }
    }
}
